package com.example.bit.spring_ioc_demo.ComponentDemo;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
//Component组件
public class ComponentDemo {
    public void run(){
        System.out.println("ComponentDemo的run方法");
    }
}
